package com.linux.huhx.example1;

import org.quartz.*;

/**
 * @Author: huhx
 * @Date: 2017-11-23 上午 9:02
 */
public class HelloJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobKey key = jobExecutionContext.getJobDetail().getKey();
        JobDataMap jobDataMap = jobExecutionContext.getJobDetail().getJobDataMap();

        System.out.println("Instance" + key + ", and username is " + jobDataMap.get("username") + ", password is " + jobDataMap.get("password"));
        System.out.println("hello world.");
    }
}